<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core">

   		<f:loadBundle basename="resources" var="msg" />

   		<ui:composition template="../templates/adminTemplate.xhtml">
						
			<ui:define name="pageTitle">Inserisci Utente</ui:define>
  
			<ui:define name="pageHeader">Inserisci Utente</ui:define>

			<ui:define name="leftBody">
				<ui:include src="adminMenu.xhtml"/>
				
       			
			</ui:define>
			
			
			<ui:define name="centerBody">
			
				
				 <h:form id="insertForm">
				 	<h:panelGrid columns="2" style=" width : 338px;"  > 
            			
            			<h:outputLabel for="name" >Nome:</h:outputLabel> 
            			<h:inputText id="name" value="#{handler.utente.nome}" />
            			
            		    <h:outputLabel for="cognome" >Cognome:</h:outputLabel> 
            			<h:inputText id="cognome" value="#{handler.utente.cognome}" />
            			
            			<h:outputLabel for="codicefiscale" >Codice Fiscale:</h:outputLabel> 
            			<h:inputText id="codicefiscale" value="#{handler.utente.codiceFiscale}" />
            			
            			<h:outputLabel for="email" >Email:</h:outputLabel> 
            			<h:inputText id="email" value="#{handler.utente.email}" />
            			
            			<h:outputLabel for="password" >Password</h:outputLabel> 
            			<h:inputText id="password" value="#{handler.utente.password}" />
            			
            			
            
           
            			
        			 </h:panelGrid>
         <h:commandButton id="Salva" value="Salva"
            action="#{handler.addUtente()}" /><br/>
            
            
       
      </h:form>
				
				
			</ui:define>
		</ui:composition>
</html>
